const express = require("express");
const { findBannerService, updataBannerSrevice } = require("../service/bannerService");
const router = express.Router();

// 获取首页标语
router.get("/", async function (req, res, next) {
  res.send(await findBannerService());
})

// 设置首页标语
router.post("/", async function (req, res, next) {
  res.send(await updataBannerSrevice(req.body));
})

module.exports = router;